import request from "@/utils/request";

// 总金额
export function getMaterialsBIWareAmount() {
  return request({
    url: "/erp/materialsBI/getMaterialsBIWareAmount",
    method: "get",
  });
}
// 根据商品类型获取TO8商品数量/金额（总仓）
export function getMaterialsBICommodityTypeNumberByGeneralWare(query) {
  return request({
    url: "/erp/materialsBI/getMaterialsBICommodityTypeNumberByGeneralWare",
    method: "get",
    params: query,
  });
}

// 根据商品类型获取TO8商品数量/金额（项目仓）
export function getMaterialsBICommodityTypeNumberByProjectWare(query) {
  return request({
    url: "/erp/materialsBI/getMaterialsBICommodityTypeNumberByProjectWare",
    method: "get",
    params: query,
  });
}

// 根据商品类型获取TO8商品数量/金额（个人仓）
export function getMaterialsBICommodityTypeNumberByPersonWare(query) {
  return request({
    url: "/erp/materialsBI/getMaterialsBICommodityTypeNumberByPersonWare",
    method: "get",
    params: query,
  });
}
